#ifndef _INFO_H_INCLUDED_
#define _INFO_H_INCLUDED_

#include "defines.h"

typedef struct {
    struct { // kz_threadの先頭部分
        kz_thread_id_t id;
        int priority;
        char name[THREAD_NAME_SIZE + 1];
        char *stack;
        unsigned stacksize;
        uint16 flags;
    } info;
    int is_current;
} kz_threadinfo_t;

typedef struct {
    int type;
#define RESOURCE_HEADER  0
#define RESOURCE_THREAD  1
#define RESOURCE_MEMORY  2
#define RESOURCE_MSGBOX  3
    int size;
    int num;
    int used;
} kz_resourceinfo_t;

#endif
